package com.china.book.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.china.book.domain.User;
import com.china.book.mapper.UserMapper;
import com.china.book.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/2/11 0011.
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>  implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findByname(String username) {
        return userMapper.findByUsername(username) ;
    }
}
